/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.common.core.util.R;
import com.ykht.proj.coupon.entity.FxBarrage;
import com.ykht.proj.coupon.vo.FxBarrageVo;

import java.util.List;

/**
 * 弹幕表
 *
 * @author proj code generator
 * @date 2021-07-07 16:20:00
 */
public interface FxBarrageService extends IService<FxBarrage> {

    R publish(FxBarrage fxBarrage);

	/**
	 * 弹幕表 分页查询
	 * @param page 分页
	 * @param fxBarrageVo 条件
	 * @return
	 */
    IPage<FxBarrageVo> getBarrageListPage(Page page, FxBarrageVo fxBarrageVo);

	/**
	 *  pc新增弹幕表并同时给视频添加弹幕数量
	 * @param fxBarrage 弹幕表
	 */
	void saveFxBarrage(FxBarrage fxBarrage);

	/**
	 * pc批量新增弹幕表并同时给视频添加弹幕数量
	 * @param fxBarrageVo 弹幕表集合
	 * @return R
	 */
	void saveBatchFxBarrage(FxBarrageVo fxBarrageVo);

	/**
	 * pc 审核弹幕
	 * @param fxBarrageVo 弹幕表
	 * @return R
	 */
	void updateFxBarrage(FxBarrageVo fxBarrageVo);
}
